{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
        <form action="{:request()->url()}" class="layui-form" method="post" enctype="">
            <div class="layui-form-item">
                <label class="layui-form-label">优惠券名称</label>
                <div class="layui-form-mid layui-word-aux">{$data.name|default=''}</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">剩余数量</label>
                <div class="layui-form-mid layui-word-aux">{$data.surplus|default=''}</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">补充数量</label>
                <div class="layui-input-inline">
                    <input type="text" name="surplus" autocomplete="off" placeholder="请输入补充数量" lay-verify="number" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-filter="i" lay-submit="">保存</button>
                    <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
{block name="js"}
<script type="text/javascript">
layui.use('laydate', function(){
  var laydate = layui.laydate;

  //日期时间选择器
  laydate.render({
    elem: '#test5'
    ,type: 'datetime'
  });
  //日期时间选择器
  laydate.render({
    elem: '#test6'
    ,type: 'datetime'
  });
});
</script>
{/block}